/**
 * Created by will.jiang on 2017/9/28.
 */
var path = require('path');
module.exports = {
    //还想打包css
    entry: path.resolve(__dirname, './index.js'),
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'template.js'
    },
    module: {
        rules: [
            //读取html文件用于配置模板
            {
                test:/\.(html)$/,
                use:[
                    {
                        loader:'html-loader',
                        options:{
                            attrs:false
                        }
                    }
                ]

            }
        ]
    }
};